<%--
  Created by IntelliJ IDEA.
  User: 杨成森
  Date: 2021/8/5
  Time: 21:42
  To change this template use File | Settings | File Templates.
--%>



<%-- 配置编码格式 --%>
<%@page pageEncoding="UTF-8" contentType="text/html; UTF-8" isELIgnored="false" %>
<html>
<head>
    <title> 登录界面 </title>

    <meta name="keywords" content="keyword1,keyword2,keyword3">
    <meta name="description" content="this is my page">
    <meta name="content-type" content="text/html; charset=GBK">
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/back/statics/css/bootstrap.min.css">
</head>

<body>
<div class="container-fluid">
    <div class="row">
        <div class="col-sm-12">
            <h1 class="text-center">用户登录</h1>
        </div>
    </div>
    <div class="row" style="margin-top: 30px;">
        <div class="col-sm-4 col-sm-offset-4">
            <%-- 将数据提交到user包下的login方法 --%>
            <form action="${pageContext.request.contextPath}/user/login" method="post">
                <div class="form-group">
                    <label>用户名:</label>
                <%-- name属性的值通过form表单提交--%>
                    <input type="text" class="form-control" name="user.username">
                </div>
                <div class="form-group">
                    <label >密&nbsp;&nbsp;码:</label>
                    <input type="text" name="user.password" class="form-control">
                </div>
                <div class="form-group">
                    <label >验证码:</label>
                    <div>
                    <%--   name属性的值为提交的值--%>
                        <input type="text" name="codeuser" class="form-control" style="width: 70%;height:40px;float: left">
                        <img src="${pageContext.request.contextPath}/user/code" style="float: right;height: 40px;"/>
                    </div>
                </div>
                <div class="clearfix"></div>
                <div style="margin-top: 10px;">
                    <input class="btn btn-success btn-block" type="submit" value="登录"/>
                    <input class="btn btn-info btn-block" onclick="location.href='${pageContext.request.contextPath}/back/regist.jsp'" type="button" value="还没有账号,点我去注册"/>
                </div>

            </form>

        </div>
    </div>
</div>
</body>
</html>
